home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5417 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: www.cybercity.dk!usenet
  2. From: bipsen@vip.cybercity.dk (Brian Ipsen)
  3. Newsgroups: comp.sys.amiga.networking,comp.sys.amiga.programmer
  4. Subject: CGI-programming for AWS ?
  5. Date: 12 Mar 1996 14:16:20 GMT
  6. Organization: CyberCity of Denmark
  7. Message-ID: <1686.6645T919T930@vip.cybercity.dk>
  8. NNTP-Posting-Host: 194.16.56.107
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  10.  
  11. Hello!
  12.  
  13.  When "surfing" on many pages, I often discover many different kind of forms,
  14. and when I take a look at the HTML-source, they all seem to have an entry
  15. like this (code from AMD's WWW-site):
  16.  
  17. O /
  18.  X - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  19. O \
  20.  
  21. <FORM METHOD="POST" ACTION="/cgi-bin/epdcontest">
  22.  
  23. and then different types of inputs:
  24.  
  25. <LI>What is the architecture of the 29K<FONT SIZE=-3>(TM)</FONT> family?<BR>
  26. <input type="radio" name="Q1" value="a">16-bit CISC<BR>
  27. <input type="radio" name="Q1" value="b">32-bit CISC<BR>
  28. <input type="radio" name="Q1" value="c">32-bit RISC<BR>
  29. <input type="radio" name="Q1" value="d">64-bit RISC<BR>
  30.  
  31. <P>Address: <input SIZE=40 maxlength=40 NAME="street">
  32.  
  33. <P>So that your entry is valid, please be sure you
  34. answer <B>all</B> questions before you <INPUT TYPE="submit"
  35. VALUE="Submit This Form">. If any item is not completed, you will get
  36. a message that your entry is not valid and have the opportunity to try
  37. again.</P>
  38.  
  39. O /
  40.  X - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  41. O \
  42.  
  43.  I wonder what is happening, when the users clicks on "submit" - I know,
  44. that the form is handled by the program in /cgi-bin/epdcontest , but
  45. how does this program get the input from the browser and so on ???
  46.  
  47.  In general I'm no expert in HTML, I prefer doing this by the Try-And-Error
  48. principle :-) - But if it cannot be said shortly, are there any C-sourcecode
  49. for cgi-binaries somewhere (hopefully ANSI C) or do I have to start with
  50. Perl (I've heard, that many uses Perl).
  51.  
  52. <tsb> GizmoSoft Productions 
  53. | bipsen@vip.cybercity.dk |
  54. |      Brian Ipsen        |
  55. --
  56. Amiga2000/A2630/9MB/Oktagon SCSI/Quantum 1.08GB/Toshiba XM5201
  57.  
  58.  
  59.